import {createApp} from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/main.scss'
import Top from '@/components/header/index.vue'
import Bottom from '@/components/bottom/index.vue'
import router from '@/router'

const app = createApp(App)

// 引入头部和底部组件
app.component('Top', Top)
app.component('Bottom', Bottom)
// 安装element
app.use(ElementPlus)
// 安装vue-router
app.use(router)

app.mount('#app')
